/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.indexdatasource.dao;

import com.pingan.haofang.searchcloud.indexdatasource.domain.IndexDatasourceBuild;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * 索引数据构建数据访问
 *
 * @author zhangbi617
 * @date 15/05/2017
 */
@Repository
public interface IndexDatasourceBuildDao extends JpaRepository<IndexDatasourceBuild, Long> {

    /**
     * 按照索引查询build信息
     *
     * @param indexId 索引ID
     * @return
     */
    IndexDatasourceBuild findByIndexId(Long indexId);


    /**
     * 按照索引查询build信息
     *
     * @param indexIds
     * @return
     */
    List<IndexDatasourceBuild> findByIndexIdIn(Set<Long> indexIds);
}
